package autocode

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type ActivityInfoRouter struct {
}

// InitActivityInfoRouter 初始化 ActivityInfo 路由信息
func (s *ActivityInfoRouter) InitActivityInfoRouter(Router *gin.RouterGroup) {
	activityInfoRouter := Router.Group("activityInfo").Use(middleware.OperationRecord())
	activityInfoRouterWithoutRecord := Router.Group("activityInfo")
	var activityInfoApi = v1.ApiGroupApp.AutoCodeApiGroup.ActivityInfoApi
	{
		activityInfoRouter.POST("createActivityInfo", activityInfoApi.CreateActivityInfo)   // 新建ActivityInfo
		activityInfoRouter.DELETE("deleteActivityInfo", activityInfoApi.DeleteActivityInfo) // 删除ActivityInfo
		activityInfoRouter.DELETE("deleteActivityInfoByIds", activityInfoApi.DeleteActivityInfoByIds) // 批量删除ActivityInfo
		activityInfoRouter.PUT("updateActivityInfo", activityInfoApi.UpdateActivityInfo)    // 更新ActivityInfo
	}
	{
		activityInfoRouterWithoutRecord.GET("findActivityInfo", activityInfoApi.FindActivityInfo)        // 根据ID获取ActivityInfo
		activityInfoRouterWithoutRecord.GET("getActivityInfoList", activityInfoApi.GetActivityInfoList)  // 获取ActivityInfo列表
	}
}
